<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>17商城</title>
    <link type="text/css" href="${pageContext.request.contextPath}/css/css.css" rel="stylesheet"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
</head>

<body style=" background:#FFF;">
<div class="loginLogo">
    <div class="logoMid">
        <h1 class="logo" style="height:71px;padding-top:10px;"><a href="index.jsp"><img
                src="${pageContext.request.contextPath}/images/loginLogo.jpg"
                width="241" height="71"/></a>
        </h1>
        <div class="loginReg">
            还没有会员账号?&nbsp;<a href="reg.jsp">免费注册</a>
        </div><!--loginReg/-->
    </div><!--logoMid/-->
</div><!--loginLogo/-->
<div class="loginBox">
    <div class="loginLeft">
        <img src="${pageContext.request.contextPath}/images/logoinimg.jpg" width="716" height="376"/>
    </div><!--loginLeft/-->
    <form action="${pageContext.request.contextPath}/login" method="post" class="loginRight">
        <h2 align="center">admin login</h2>
        <h4 align="center">${msg}</h4>
        <h3>账号</h3>
        <input type="text" class="name" id="account" value="${param.account}" name="account"/>
        <h3>密码</h3>
        <input type="password" class="pwd" id="password" value="${param.password}" name="password"/>
        <h3>验证码</h3>
        <input type="text" class="name" name="checkcode" style="width: 100px"/>
        &nbsp;&nbsp;&nbsp;
        <img alt="验证码" id="imagecode" src="<%=request.getContextPath()%>/safe_code" onclick="codeNext()">
        <span><button onclick="codeNext()">看不清？</button></span>
        <div class="zhuangtai">
            <input type="checkbox" checked="checked"/> 下次自动登录
        </div><!--zhuangtai/-->
        <div class="subs">
            <input type="image" src="${pageContext.request.contextPath}/images/sub.jpg" class="submit"/>
        </div>
    </form><!--loginRight/-->
    <div class="clears"></div>
</div><!--loginBox/-->
<script type="text/javascript">
    function codeNext () {
        $("#imagecode").prop("src", "${pageContext.request.contextPath}/safe_code? =" + new Date().getTime());
    }
</script>
</body>
</html>
